﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using test.Bll;
using test.Model;

namespace test.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ValuesController : ControllerBase
    {
        public ValuesController(testBll bll)
        {
            Bll = bll;
        }

        public testBll Bll { get; }

        /// <summary>
        /// 用户信息基本录入
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        [HttpPost]
        public int PostTest(T_User info)
        {
            try
            {
                return Bll.PostTest(info);
            }
            catch (Exception)
            {
                throw;
            }
        }
    }
}
